package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import javax.swing.*;

/**
 * 1.整合mybatis-plus
 *   1.导入依赖
 *      2.配置数据源
 *             3.配置mybatis-plus
 *
 * 2.测试
 *
 *
 * 2.逻辑删除
 * 1）配置全局的逻辑删除规则（省略）
 * 2）配置逻辑删除的组件Bean Mybatis-Plus已下3.1.0（省略）
 * 3）给Bean加上逻辑删除注解@TableLogic
 */
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.atguigu.gulimall.product.dao")
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class);
    }
}
